Holds information about a failure when trying to import an object using an Exporter.
More...
Holds information about a failure when trying to import an object using an Exporter.
◆ ExportError() [1/2]
nkExport::ExportError::ExportError |
( |
| ) |
|
◆ ExportError() [2/2]
nkExport::ExportError::ExportError |
( |
const char * |
errorDesc, |
|
|
const char * |
errorInfos, |
|
|
unsigned int |
index |
|
) |
| |
Constructor allowing to populate all data at once.
- Parameters
-
errorDesc | A message describing the error. For instance, "parsing error". |
errorInfos | Bonus information about the error. For instance, a trace of where a parsing error occurred. |
index | An index pointing the error in the source. |
◆ ~ExportError()
nkExport::ExportError::~ExportError |
( |
| ) |
|
◆ setErrorDesc()
void nkExport::ExportError::setErrorDesc |
( |
const char * |
desc | ) |
|
Allows to set a new error description.
- Parameters
-
desc | The description of the error. |
◆ setErrorInfo()
void nkExport::ExportError::setErrorInfo |
( |
const char * |
infos | ) |
|
Allows to set new bonus information for the error.
- Parameters
-
infos | Bonus information about the error. |
◆ setIndex()
void nkExport::ExportError::setIndex |
( |
unsigned int |
index | ) |
|
Allows to set the index at which the error as been found, in the sources.
- Parameters
-
◆ setActivated()
void nkExport::ExportError::setActivated |
( |
bool |
value | ) |
|
Allows to set whether the error has been triggered or not.
- Parameters
-
value | Whether the error is flagged as being triggered (true) or not (false). |
◆ getErrorDesc()
const char* nkExport::ExportError::getErrorDesc |
( |
| ) |
const |
- Returns
- The error description, if triggered.
◆ getErrorInfo()
const char* nkExport::ExportError::getErrorInfo |
( |
| ) |
const |
- Returns
- Bonus information about the error, if triggered.
◆ getIndex()
unsigned int nkExport::ExportError::getIndex |
( |
| ) |
const |
- Returns
- The index in the source from where the error has been triggered, if any.
◆ isActivated()
bool nkExport::ExportError::isActivated |
( |
| ) |
const |
- Returns
- Whether the error has been triggered (true) or not (false).
The documentation for this class was generated from the following file: